package com.abc.hello;

import java.util.Scanner;

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第1个数：");
        double Num1=sc.nextDouble();
        System.out.println("请输入第2个数：");
        double Num2=sc.nextDouble();
        double Sum=getSum(Num1,Num2);
        System.out.println(Num1+"+"+Num2+"="+Sum);
        System.out.println("=============");
        showNum();
    }

    public static double getSum(double Num1, double Num2){
        return Num1+Num2;
    }
    public static void showNum(){
        for(int i=1;i<=30;i++){
            System.out.print(i+" ");
            if(i%10==0){
                System.out.println();
            }
        }
    }
}
